package com.gem.growingtree.activity;

import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ContentView;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.lidroid.xutils.view.annotation.event.OnClick;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageView;
@ContentView(R.layout.activity_left_menu)
public class LeftMenuActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// 取消标题栏
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		//setContentView(R.layout.activity_left_menu);
		ViewUtils.inject(this);
	}

	@ViewInject(R.id.left_menu)
	public ImageView left_menu;

	@OnClick(R.id.left_menu)
	public void toMainMenu(View v) {
		Intent intent = new Intent(LeftMenuActivity.this, GrowthZoneActivity.class);
		startActivity(intent);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.left_menu, menu);
		return true;
	}

}
